// 成功结果
export const resultSuccess = <T>(status: boolean, code: number, data: T, message?: string) => {
    return { status, code, data, message }
}

// 失败结果 - 添加 data: undefined
export const resultFailure = (status: boolean, code: number, message: string) => {
    return { status, code, message, data: undefined }
}
